<?php defined('SYSPATH') or die('No direct script access.');
 
class Model_Pages extends Model {

    public function onePage($link) {
        $sql = "SELECT * FROM `pages` where `link` = '$link'";

        return DB::query(Database::SELECT, $sql)
            ->execute()
            ->as_array();
    }

}